package com.sztx.pay.center.common.util;

import java.io.IOException;
import java.util.Properties;

import com.alibaba.dubbo.common.logger.Logger;
import com.alibaba.dubbo.common.logger.LoggerFactory;

public class JfConfigUtil {
	private static Properties props = null;
	private static Logger logger = LoggerFactory.getLogger(JfConfigUtil.class);
	static{
		reload();
	}
	public static String getConfig(String key){
		return props.get(key).toString();
	}
	public static void reload(){
		props = new Properties();
		try {
			props.load(JfConfigUtil.class.getResourceAsStream("/jf-payfee.properties"));
		} catch (IOException e) {
			logger.info("文件不存在！"+e);
		}
	}
}
